package com.suning.sawp.dto.esb;

import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@XStreamAlias("MbfBody")
public class QryCouponListRsp {

    private String errorCode;

    @XStreamAlias("failedReson")
    private String failedReson;

    @XStreamAlias("result")
    private String result;

    @XStreamAlias("activityList")
    private List<CouponDetail> actInfoList;

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getFailedReson() {
        return failedReson;
    }

    public void setFailedReson(String failedReson) {
        this.failedReson = failedReson;
    }

    public List<CouponDetail> getActInfoList() {
        return actInfoList;
    }

    public void setActInfoList(List<CouponDetail> actInfoList) {
        this.actInfoList = actInfoList;
    }
    

    @Override
    public String toString() {
        return "QryCouponListRsp [, errorCode=" + errorCode + ", failedReson="
                + failedReson + ", result=" + result + ", actInfoList=" + actInfoList + "]";
    }



    @XStreamAlias("activityDetail")
    public static class CouponDetail {

        @XStreamAlias("activityId")
        private String activityId;

        @XStreamAlias("activitySecretKey")
        private String activitySecretKey;

        @XStreamAlias("couponType")
        private String couponType;

        @XStreamAlias("couponValue")
        private String couponValue;

        @XStreamAlias("couponPromotionLabel")
        private String couponPromotionLabel;

        @XStreamAlias("couponRulesShowMsg")
        private String couponRulesShowMsg;

        @XStreamAlias("couponRuleId")
        private String couponRuleId;

        @XStreamAlias("couponRuleTimeType")
        private String couponRuleTimeType;

        @XStreamAlias("startTime")
        private String startTime;

        @XStreamAlias("endTime")
        private String endTime;

        @XStreamAlias("dynamicTime")
        private String dynamicTime;

        @XStreamAlias("dynamicDistanceTimeDelay")
        private String dynamicDistanceTimeDelay;

        @XStreamAlias("productList")
        private List<ProductDetail> productList;

        public String getActivityId() {
            return activityId;
        }

        public void setActivityId(String activityId) {
            this.activityId = activityId;
        }

        public String getActivitySecretKey() {
            return activitySecretKey;
        }

        public void setActivitySecretKey(String activitySecretKey) {
            this.activitySecretKey = activitySecretKey;
        }

        public String getCouponType() {
            return couponType;
        }

        public void setCouponType(String couponType) {
            this.couponType = couponType;
        }

        public String getCouponValue() {
            return couponValue;
        }

        public void setCouponValue(String couponValue) {
            this.couponValue = couponValue;
        }

        public String getCouponPromotionLabel() {
            return couponPromotionLabel;
        }

        public void setCouponPromotionLabel(String couponPromotionLabel) {
            this.couponPromotionLabel = couponPromotionLabel;
        }

        public String getCouponRulesShowMsg() {
            return couponRulesShowMsg;
        }

        public void setCouponRulesShowMsg(String couponRulesShowMsg) {
            this.couponRulesShowMsg = couponRulesShowMsg;
        }

        public String getCouponRuleId() {
            return couponRuleId;
        }

        public void setCouponRuleId(String couponRuleId) {
            this.couponRuleId = couponRuleId;
        }

        public String getCouponRuleTimeType() {
            return couponRuleTimeType;
        }

        public void setCouponRuleTimeType(String couponRuleTimeType) {
            this.couponRuleTimeType = couponRuleTimeType;
        }

        public String getStartTime() {
            return startTime;
        }

        public void setStartTime(String startTime) {
            this.startTime = startTime;
        }

        public String getEndTime() {
            return endTime;
        }

        public void setEndTime(String endTime) {
            this.endTime = endTime;
        }

        public String getDynamicTime() {
            return dynamicTime;
        }

        public void setDynamicTime(String dynamicTime) {
            this.dynamicTime = dynamicTime;
        }

        public String getDynamicDistanceTimeDelay() {
            return dynamicDistanceTimeDelay;
        }

        public void setDynamicDistanceTimeDelay(String dynamicDistanceTimeDelay) {
            this.dynamicDistanceTimeDelay = dynamicDistanceTimeDelay;
        }

        public List<ProductDetail> getProductList() {
            return productList;
        }

        public void setProductList(List<ProductDetail> productList) {
            this.productList = productList;
        }

        @Override
        public String toString() {
            return "CouponDetail [activityId=" + activityId + ", activitySecretKey=" + activitySecretKey
                    + ", couponType=" + couponType + ", couponValue=" + couponValue + ", couponPromotionLabel="
                    + couponPromotionLabel + ", couponRulesShowMsg=" + couponRulesShowMsg + ", couponRuleId="
                    + couponRuleId + ", couponRuleTimeType=" + couponRuleTimeType + ", startTime=" + startTime
                    + ", endTime=" + endTime + ", dynamicTime=" + dynamicTime + ", dynamicDistanceTimeDelay="
                    + dynamicDistanceTimeDelay + ", productList=" + productList + "]";
        }
        @XStreamAlias("productDetail")
        public static class ProductDetail {
            
            @XStreamAlias("storeId")
            private String storeId;
            
            @XStreamAlias("productId")
            private String productId;

            @Override
            public String toString() {
                return "ProductDetail [storeId=" + storeId + ", productId=" + productId + "]";
            }

            public String getStoreId() {
                return storeId;
            }

            public void setStoreId(String storeId) {
                this.storeId = storeId;
            }

            public String getProductId() {
                return productId;
            }

            public void setProductId(String productId) {
                this.productId = productId;
            }

        }

    }
}
